<div>
	<!-- <h2 data-translate="milkbeeApp.card.home.title">Cards</h2> -->
	<h2>{{vm.categoryName}}</h2>
	<jhi-alert></jhi-alert>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-4 no-padding-left">
				<button class="btn btn-primary"
					ui-sref="pubcardcategory.new({categoryId:vm.categoryId})">
					<span class="glyphicon glyphicon-plus"></span> <span
						data-translate="milkbeeApp.card.home.publish"> Publish </span>
				</button>
			</div>
		</div>
	</div>
	<br />
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12 col-md-12" ng-repeat="advertisement in vm.advertisements track by advertisement.id">
				<a rel="nofollow" href="{{advertisement.weblink}}"><img style="max-width:100%" src="/content/images/upload/advertisement/{{advertisement.image}}" /></a>
			</div>
		</div>
	</div>
	<div class="table-responsive">
		<table class="jh-table table table-striped">
			<thead>
				<tr>
					<th></th>
					<th><span data-translate="milkbeeApp.questionnaire.title">Title</span>
					</th>
					<th><span data-translate="milkbeeApp.questionnaire.createdAt">Title</span>
					</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="quest in vm.questionnaires track by quest.id">
					<td class="text-right"><span style="color: orange;"
						class="glyphicon glyphicon glyphicon-list"></span></td>
					<td><a ui-sref="vote-detail({id:quest.id})">{{quest.title}}</a></td>
					<td>{{quest.createdAt | date:'medium'}}</td>
					<td class="text-right"></td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="table-responsive">
		<table class="jh-table table table-striped">
			<thead>
				<tr jh-sort="vm.predicate" ascending="vm.reverse"
					callback="vm.transition()">
					<th></th>
					<th><span data-translate="milkbeeApp.card.title">Title</span>
					</th>
					<th><span data-translate="milkbeeApp.card.author">Author</span>
					</th>
					<th><span data-translate="milkbeeApp.card.commentCount">Comment
							Count</span>/<span data-translate="milkbeeApp.card.look">Look</span></th>
					<th><span data-translate="milkbeeApp.card.light">Light</span>
					</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="card in vm.cards track by card.id">
					<td class="text-right"><span ng-if="card.essence>2"
						style="color: orange;" class="glyphicon glyphicon-thumbs-up"></span>
						<span ng-if="card.commentCount>10" style="color: red;"
						class="glyphicon glyphicon-fire"></span> <span
						ng-if="card.attachment" style="color: silver;"
						class="glyphicon glyphicon-paperclip"></span></td>
					<td><a
						ui-sref="pubcardcoments({cardId:card.id,cardTitle:card.title,categoryId:vm.categoryId,categoryName:vm.categoryName})">{{card.title}}</a>
					</td>
					<td>{{card.author}}<br />{{card.createdAt | date:'medium'}}
					</td>
					<td>{{card.commentCount}}/{{card.look}}</td>
					<td>{{card.light}}</td>
					<td class="text-right"></td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="text-center">
		<jhi-item-count page="vm.page" total="vm.queryCount"
			items-per-page="vm.itemsPerPage"></jhi-item-count>
		<uib-pagination class="pagination-sm" total-items="vm.totalItems"
			items-per-page="vm.itemsPerPage" ng-model="vm.page"
			ng-change="vm.transition()"></uib-pagination>
	</div>
</div>
